home *** CD-ROM | disk | FTP | other *** search
- Path: news.ios.com!usenet
- From: John Leonard <leonardj@tribeca.ios.com>
- Newsgroups: comp.lang.c++
- Subject: Using templates in BC++ 4.5
- Date: Tue, 23 Jan 1996 11:26:21 -0500
- Organization: 12th of Nov, Inc
- Message-ID: <31050C2D.674C@tribeca.ios.com>
- NNTP-Posting-Host: ppp-36.ts-9.hck.idt.net
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0b4 (Win95; I)
-
- I wrote a windows program, in BC++ 4.52, that uses class templates.
- The template declarations are in a header file and the function
- definitions are in a cpp file which includes the header file. The cpp
- file compiled fine, but the project window showed that the code size
- equaled zero and when I tried to build and link the entire project I got
- linker error messages that the member functions of the class were
- undefined. I then changed the code so that the classes weren't templates
- and the project was built and ran fine. My question is: how can I use
- class templates in my program?
-